home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form2
- Caption = "Delete Item"
- ClientHeight = 3195
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 2370
- LinkTopic = "Form2"
- ScaleHeight = 3195
- ScaleWidth = 2370
- StartUpPosition = 1 'CenterOwner
- Begin VB.CommandButton btnCancel
- Caption = "Cancel"
- Default = -1 'True
- Height = 465
- Left = 1410
- TabIndex = 2
- Top = 2610
- Width = 810
- End
- Begin VB.CommandButton btnOK
- Caption = "OK"
- Height = 465
- Left = 225
- TabIndex = 1
- Top = 2595
- Width = 810
- End
- Begin VB.ListBox List1
- Height = 2010
- ItemData = "DelItem.frx":0000
- Left = 195
- List = "DelItem.frx":0002
- TabIndex = 0
- Top = 45
- Width = 2025
- End
- Begin VB.Label Label1
- Caption = "Select an Item to Delete."
- Height = 360
- Left = 240
- TabIndex = 3
- Top = 2160
- Width = 1980
- End
- Attribute VB_Name = "Form2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub btnCancel_Click()
- Form1.F1Book1.Tag = "Cancel"
- Unload Form2
- Form1.Show
- End Sub
- Private Sub btnOK_Click()
- If List1.ListIndex = -1 Then
- MsgBox "Make a selection."
- Exit Sub
- End If
- Form1.F1Book1.Tag = List1.ListIndex
- Unload Form2
- Form1.Show
- End Sub
- Private Sub Form_Load()
- Dim x As Integer
- For x = 0 To Form1.F1Book1.ObjGetItemCount(Form1.F1Book1.ObjSelection(0)) - 1
- List1.AddItem Form1.F1Book1.ObjItem(Form1.F1Book1.ObjSelection(0), x)
- Next x
- End Sub
-